<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href = "/tubu/Public/Css/common.css" type = "text/css" rel = "stylesheet"/>
<title>订单管理</title>
</head>
<body>
<div id="head">
	<div id="logo"> <img src="/tubu/Public/Img/logo.png" /></div>
	<div id="headguidance">
		<ul id="headnav">
		 
       	 <li><a href="/tubu/index.php/Admin/User/index">用户管理</a></li>
       	 <li><a href="/tubu/index.php/Admin/Scenic/index">景区管理</a></li>
       	 <li><a href="/tubu/index.php/Admin/Point/index">定点管理</a></li>
       	 <li><a href="/tubu/index.php/Admin/ScenicTicket/index">门票管理</a></li>
       	 <li><a href="/tubu/index.php/Admin/ScenicOrder/index">订单管理</a></li>
       	 <li><a href="/tubu/index.php/Admin/Publish/index">约吧管理</a></li>
       	 <li><a href="/tubu/index.php/Admin/Entertainment/index">娱乐管理</a></li>
		</ul>
	</div>
</div>
<div>
	<div id="userName">
			欢迎<?php echo ($_SESSION['username']); ?>管理员。<a href="/tubu/index.php/Admin/Login/logout">退出登录</a>
	</div>
	<div id="content">
		
<script type="text/javascript" src="/tubu/Public/Js/account_manage.js"></script>
<link href = "/tubu/Public/Css/index.css" type = "text/css" rel = "stylesheet"/>
	<div id="content" align="center">		
		<div id="user" >
			<p style="margin-left:-560px; font-size:20px; color:#1d353f; font-weight:bold;">订单列表</p>
			<div id='OrderBtn'>
					<input type="button" value="全部" class="tableBtn" onclick="javascript:window.location.href = '/tubu/index.php/Admin/ScenicOrder/getByType';">
					<input type="button" value="未消费" class="tableBtn" onclick="javascript:window.location.href = '/tubu/index.php/Admin/ScenicOrder/getByType?type=1';">
					<input type="button" value="已消费" class="tableBtn" onclick="javascript:window.location.href = '/tubu/index.php/Admin/ScenicOrder/getByType?type=2';">
			</div>
			<hr width="700px"/>
			<table>
			<tr style="color:#1d353f;"><th>序号</th><th>门票</th><th>数量<th>用户手机</th><th>状态</th><th>操作</th><tr>
			<?php if(is_array($list)): foreach($list as $key=>$order): ?><tr>
				<td><?php if(($_GET['p'] == 0)): echo ++$i; else: echo ++$i + ($_GET['p']-1) * 7; endif; ?></td>
				<td><?php echo ($order['ticket_name']); ?></td>
				<td><?php echo ($order['num']); ?></td>
				<td><?php echo ($order['account_phone']); ?></td>
				<td><?php switch($order["type"]): case "0": ?>未付款<?php break;?>
					    <?php case "1": ?>未消费<?php break;?>
					    <?php case "2": ?>已消费<?php break; endswitch;?>
				</td>
				<td>
					<?php if($order['type'] == 1): ?><a href="javascript:orderCheck('/tubu/index.php/Admin/ScenicOrder/check','<?php echo ($order['id']); ?>')">
					<img src="/tubu/Public/Img/check.jpg" /></a><?php endif; ?>
					<a href="javascript:userDelete('/tubu/index.php/Admin/ScenicOrder/delete','<?php echo ($order['id']); ?>')">
					<img src="/tubu/Public/Img/delete.png" /></a></td>
			</tr><?php endforeach; endif; ?>	
			</table>
		</div>	
		<div id="count" align="center">共<?php echo ($count); ?>条</div>	
		<div id="page" align="center"><?php echo ($page); ?></div>	
	</div>

	</div>
</div>
<!--<div id="foot">
	<div id="companyInfo">
		<p>名称：阡陌森创意设计有限公司&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;邮箱：qianmosen@163.com</p>
		<p>地址：浙江省温州市鹿城区府东路物华大厦6B &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;网址：http://www.arqm.cn</p>
	</div>
  <div id="copyright">
  	  <p>Copyright © 2014-2016 Arqm.Cn All Rights Reserved</p>
  </div>
</div>-->
</body>
</html>